<!DOCTYPE html>

<html>

<head>
    <title></title>
    <script src='../vue.js'></script>
</head>

<body>
    <div id="app-1">
        <my-component></my-component>
    </div>
    <script>
        // 注册
        Vue.component('my-component', {
            template: '<div>A custom component!</div>'
        })
        // 创建根实例
        new Vue({
            el: '#app-1'
        })
    </script>
</body>


</html>